package com.code.man;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.Project;
import com.code.man.view.GenerateConfigForm;

/**
 * idea插件Action
 *
 * @author devinpzhang
 * @date 2019/9/25 18:34
 */
public class CodeGeneratorAction extends AnAction {
    private Project project;

    @Override
    public void actionPerformed(AnActionEvent event) {
        project = event.getData(PlatformDataKeys.PROJECT);
        new GenerateConfigForm(project).open();
    }
}
